﻿using HPIT_Library_Modal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;

namespace HPIT_Library.Ashx一般处理程序
{
    /// <summary>
    /// Select 的摘要说明
    /// </summary>
    public class Select : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            var ParentID = context.Request.Form["ParentID"];
            List<Area> list= HPIT_Library_BLL.AreaBLL.AreaSelect(ParentID);
            JavaScriptSerializer js = new JavaScriptSerializer();

            context.Response.Write(js.Serialize(list));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}